Return the sizeof an array of struct. Equivalent to sizeof operator but works on generics too.
'Declaration
Public Overloads Shared Function SizeOf(Of As {New, Struct})( _
ByVal () As _
) As System.Integer
public static System.int SizeOf<>(
[]
)
where T: new(), struct
Parameters
- array
- The array of struct to evaluate.
Type Parameters
- T
- A struct.
Return Value
Size in bytes of this array of struct.